package com.ruoyi.db.domain.system;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 【商城用户】对象 pc_distribution_config
 * 
 * @author ruoyi
 * @date 2022-07-23
 */
@ApiModel(value = "PcDistributionConfig",description = "【商城用户】对象 pc_distribution_config")
public class PcDistributionConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分销设置主键 */
    private Long id;

    /** 团队平级奖励比例 */
    @ApiModelProperty(value="团队平级奖励比例",name="PcDistributionConfig$teamSameLevelRate")
    @Excel(name = "团队平级奖励比例")
    private BigDecimal teamSameLevelRate;

    /** 直推奖励比例 */
    @ApiModelProperty(value="直推奖励比例",name="PcDistributionConfig$directRecommendRate")
    @Excel(name = "直推奖励比例")
    private BigDecimal directRecommendRate;

    /** 间推奖励比例 */
    @ApiModelProperty(value="间推奖励比例",name="PcDistributionConfig$indirectRecommendRate")
    @Excel(name = "间推奖励比例")
    private BigDecimal indirectRecommendRate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTeamSameLevelRate(BigDecimal teamSameLevelRate) 
    {
        this.teamSameLevelRate = teamSameLevelRate;
    }

    public BigDecimal getTeamSameLevelRate() 
    {
        return teamSameLevelRate;
    }
    public void setDirectRecommendRate(BigDecimal directRecommendRate) 
    {
        this.directRecommendRate = directRecommendRate;
    }

    public BigDecimal getDirectRecommendRate() 
    {
        return directRecommendRate;
    }
    public void setIndirectRecommendRate(BigDecimal indirectRecommendRate) 
    {
        this.indirectRecommendRate = indirectRecommendRate;
    }

    public BigDecimal getIndirectRecommendRate() 
    {
        return indirectRecommendRate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("teamSameLevelRate", getTeamSameLevelRate())
            .append("directRecommendRate", getDirectRecommendRate())
            .append("indirectRecommendRate", getIndirectRecommendRate())
            .toString();
    }
}
